package com.miya.demo.support.rabbitmq;

import org.springframework.amqp.core.ExchangeBuilder;
import org.springframework.amqp.core.FanoutExchange;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 股票mq扇出配置
 *
 * @author Caixiaowei
 * @date 2022/01/19
 */
@Configuration
public class StockMqFanoutConfig {

	@Bean("stockMarketExchange")
	public FanoutExchange stockMarketExchange() {
		return ExchangeBuilder.fanoutExchange("stockMarketExchange").durable(true).build();
	}
}
